<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>企业详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <%- include ../publicPages/css_content.ejs%>
    <link rel='stylesheet' href='/stylesheets/company/companyDetail.css' >
</head>
<body>
<!--头部区域-->
<%- include ../publicPages/header.ejs %>
<!--主体区域-->
<div id="main-body">
    <div class="company-wrapper">
        <div id="basic-info">
            <blockquote class="layui-elem-quote" style="position: relative;">基本信息
                <button type="button" id="basicInfo-btn-edit" style="position: absolute;top: 16px;right: 20px;" class="layui-btn layui-btn-mini"><i class="layui-icon">&#xe642;</i></button>
            </blockquote>
            <form id="form-company-basicInfo" class="layui-form layui-form-pane">
                <input type="hidden" value="<%=company.id%>" name="companyId"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">公司名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="companyName" readonly="readonly" class="layui-input" value="<%= company.companyName%>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">融资阶段</label>
                    <div class="layui-input-inline">
                        <select  disabled="disabled" name="financingStage">
                            <%for(var i=0;i<financingStageList.length;i++){%>
                                <%if(financingStageList[i].id==company.financingStage){%>
                                    <option value="<%=financingStageList[i].id%>" selected><%=financingStageList[i].name%></option>
                                <%}else{%>
                                    <option value="<%=financingStageList[i].id%>"><%=financingStageList[i].name%></option>
                                <%}%>
                            <%}%>
                        </select>
                    </div>
                    <label class="layui-form-label">行业领域</label>
                    <div class="layui-input-inline">
                        <select  disabled="disabled" name="industryField">
                            <%for(var i=0;i<industryFieldList.length;i++){%>
                                <%if(industryFieldList[i].id==company.industryField){%>
                                    <option value="<%=industryFieldList[i].id%>" selected><%=industryFieldList[i].name%></option>
                                 <%}else{%>
                                    <option value="<%=industryFieldList[i].id%>"><%=industryFieldList[i].name%></option>
                                <%}%>
                            <%}%>
                        </select>
                    </div>
                    <label class="layui-form-label">企业规模</label>
                    <div class="layui-input-inline">
                        <select  disabled="disabled" name="employeeNum">
                            <%for(var i=0;i<employeeNumList.length;i++){%>
                                <%if(employeeNumList[i].id==company.employeeNum){%>
                                    <option value="<%=employeeNumList[i].id%>" selected><%=employeeNumList[i].name%></option>
                                <%}else{%>
                                    <option value="<%=employeeNumList[i].id%>"><%=employeeNumList[i].name%></option>
                                <%}%>
                            <%}%>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">所在地区</label>
                    <div class="layui-input-inline">
                        <select name="provinceId" disabled="disabled" lay-filter="province">
                            <%for(var i=0;i<provinceList.length;i++){%>
                            <%if(provinceList[i].ProID===company.provinceId){%>
                            <option value="<%=provinceList[i].ProID%>" selected><%=provinceList[i].name%></option>
                            <%}else{%>
                            <option value="<%=provinceList[i].ProID%>"><%=provinceList[i].name%></option>
                            <%}%>
                            <%}%>
                        </select>
                    </div>
                    <div class="layui-input-inline">
                        <select name="cityId" disabled="disabled" lay-filter="city">
                            <%for(var i=0;i<cityList.length;i++){%>
                            <%if(cityList[i].CityID===company.cityId){%>
                            <option value="<%=cityList[i].CityID%>" selected><%=cityList[i].name%></option>
                            <%}else{%>
                            <option value="<%=cityList[i].CityID%>"><%=cityList[i].name%></option>
                            <%}%>
                            <%}%>
                        </select>
                    </div>
                    <div class="layui-input-inline">
                        <select name="countryId" disabled="disabled">
                            <%for(var i=0;i<countryList.length;i++){%>
                            <%if(countryList[i].Id===company.countryId){%>
                            <option value="<%=countryList[i].Id%>" selected><%=countryList[i].DisName%></option>
                            <%}else{%>
                            <option value="<%=countryList[i].Id%>"><%=countryList[i].DisName%></option>
                            <%}%>
                            <%}%>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">详细地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="address" readonly="readonly" class="layui-input"  value="<%=company.address%>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">公司定位</label>
                    <div class="layui-input-block">
                        <input type="text" name="companyWord" readonly="readonly" class="layui-input"  value="<%=company.companyWord%>">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">公司介绍</label>
                    <input type="hidden" class="introductionHtmlStr" value="<%= company.introduction%>"/>
                    <div class="introduction"></div>
                    <textarea id="introduction-edit" name="introduction" style="display: none"></textarea>
                </div>
                <div class="layui-form-item basic-info-btn-wrapper" style="text-align: center;display: none;">
                    <button type="button" lay-submit lay-filter="company-basicInfo-submit" class="layui-btn">保存</button>
                    <button type="button" id="company-basicInfo-btn-cancel" class="layui-btn layui-btn-primary">取消</button>
                </div>
            </form>
        </div>
        <div class="hr-list">
            <blockquote class="layui-elem-quote">HR列表</blockquote>
        </div>
        <div class="job-list">
            <blockquote class="layui-elem-quote">发布职位</blockquote>
        </div>
    </div>
</div>
</body>
<!--JS-->
<%- include ../publicPages/script_content.ejs %>
<script src="/javascripts/company/companyDetail.js"></script>
</html>
